import xlrd
from config import BASE_DIR

def read_excel(file_path, sheet_name,index):
    file_path = BASE_DIR+"/data/"+file_path
    workbook = xlrd.open_workbook(file_path)
    sheet = workbook.sheet_by_name(sheet_name)
    data = []
    for i in range(index,sheet.nrows):
        data.append(sheet.row_values(i))
    return data